#!/bin/bash

 params=$(cat .default)

#echo "$params"

#./testd -r environics -d /dev/ttyS0 -b 9600 -c \\r\\r -w 4 -l 2000 -f 3600 -p -s 34-506 -a \/home\/aqdas\/CARBLogger\/Data\/

./testd $params &
count=1
proc_id[$count]=$!

echo "${proc_id[$count]}"
sleep 10

kill ${proc_id[$count]}

echo "past kill"
sleep 10

echo "past sleep"
exit